package lab02.Test06;

public class Circle {
    //3)	Circle类具有类型为double的半径、周长和面积属性，具有返回周长、面积的功能。

    double r;
    double perimeter;
    double area;

    public void setValue(double radius) {
        this.r = r;
    }

    public double perimeter(double r) {
        double perimeter = 2 * 3.14 * r;
        return perimeter;
    }

    public double area(double r) {
        double area = 3.14 * r * r;
        return area;
    }

}


